import request from "./request";
export function userlogin (parameter){
    return request({
       url:"/user/login",
       method:'post',
       data:parameter
    })
}
export function getUserAll (parameter){
    return request({
        url:"/user/findAll",
        method:'get',
        params:parameter
    })   
}
export function getUserByName (parameter){
    return request({
       url:"/user/queryByName",
       method: 'post',
       data: parameter
    })
}
export function addUser (parameter){
    return request({
       url:"/user/add",
       method: 'post',
       data: parameter
    })
}
export function updateUser (parameter){
    return request({
       url:"/user/update",
       method:'post',
       data:parameter
    })
}
export function delUser (parameter){
    return request({
        url:"/user/del",
        method:'get',
        params:parameter
    })   
}